package com.androidx.p013lv.mine.databinding;

import android.support.p007v4.media.session.PlaybackStateCompat;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import androidx.viewpager.widget.ViewPager;
import com.androidx.p013lv.base.bean.UserAccount;
import com.androidx.p013lv.base.bean.UserInfo;
import com.androidx.p013lv.base.view.CircleImageView;
import com.androidx.p013lv.mine.C1206BR;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.activity.VipCenterActivity;
import com.androidx.p013lv.mine.bean.RechargeBean;
import com.androidx.p013lv.mine.generated.callback.OnClickListener;
import com.google.android.material.tabs.TabLayout;

/* renamed from: com.androidx.lv.mine.databinding.ActivityVipCenterLayoutBindingImpl */
public class ActivityVipCenterLayoutBindingImpl extends ActivityVipCenterLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback1;
    private final View.OnClickListener mCallback2;
    private long mDirtyFlags;
    private final TextView mboundView1;
    private final TextView mboundView4;
    private final TextView mboundView5;
    private final TextView mboundView6;
    private final LinearLayout mboundView7;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C1207R.C1210id.toolbar, 8);
        sViewsWithIds.put(C1207R.C1210id.tab_layout, 9);
        sViewsWithIds.put(C1207R.C1210id.view_pager, 10);
    }

    public ActivityVipCenterLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 11, sIncludes, sViewsWithIds));
    }

    private ActivityVipCenterLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 3, (CircleImageView) objArr[3], (ImageView) objArr[2], (RelativeLayout) objArr[0], (TabLayout) objArr[9], (Toolbar) objArr[8], (ViewPager) objArr[10]);
        this.mDirtyFlags = -1;
        this.imgUserHead.setTag(null);
        this.ivRightMenu.setTag(null);
        this.llCardView.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[4];
        this.mboundView4 = textView2;
        textView2.setTag(null);
        TextView textView3 = (TextView) objArr[5];
        this.mboundView5 = textView3;
        textView3.setTag(null);
        TextView textView4 = (TextView) objArr[6];
        this.mboundView6 = textView4;
        textView4.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[7];
        this.mboundView7 = linearLayout;
        linearLayout.setTag(null);
        setRootTag(view);
        this.mCallback2 = new OnClickListener(this, 2);
        this.mCallback1 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 8192;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C1206BR.userInfo == i) {
            setUserInfo((UserInfo) obj);
        } else if (C1206BR.backTitle == i) {
            setBackTitle((String) obj);
        } else if (C1206BR.weChat == i) {
            setWeChat((Integer) obj);
        } else if (C1206BR.userAccount == i) {
            setUserAccount((UserAccount) obj);
        } else if (C1206BR.ysf == i) {
            setYsf((Integer) obj);
        } else if (C1206BR.commitStatus == i) {
            setCommitStatus((Integer) obj);
        } else if (C1206BR.type == i) {
            setType((Integer) obj);
        } else if (C1206BR.bean == i) {
            setBean((RechargeBean) obj);
        } else if (C1206BR.aliPay == i) {
            setAliPay((Integer) obj);
        } else if (C1206BR.click == i) {
            setClick((VipCenterActivity.OnClick) obj);
        } else if (C1206BR.imgUrl != i) {
            return false;
        } else {
            mo14327c((String) obj);
        }
        return true;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    public void setUserInfo(UserInfo userInfo) {
        updateRegistration(0, userInfo);
        this.mUserInfo = userInfo;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C1206BR.userInfo);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    public void setBackTitle(String str) {
        this.mBackTitle = str;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(C1206BR.backTitle);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    public void setWeChat(Integer num) {
        this.mWeChat = num;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    public void setUserAccount(UserAccount userAccount) {
        updateRegistration(1, userAccount);
        this.mUserAccount = userAccount;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C1206BR.userAccount);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    public void setYsf(Integer num) {
        this.mYsf = num;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    public void setCommitStatus(Integer num) {
        this.mCommitStatus = num;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    public void setType(Integer num) {
        this.mType = num;
        synchronized (this) {
            this.mDirtyFlags |= 128;
        }
        notifyPropertyChanged(C1206BR.type);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    public void setBean(RechargeBean rechargeBean) {
        this.mBean = rechargeBean;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    public void setAliPay(Integer num) {
        this.mAliPay = num;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    public void setClick(VipCenterActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 512;
        }
        notifyPropertyChanged(C1206BR.click);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityVipCenterLayoutBinding
    /* renamed from: c */
    public void mo14327c(String str) {
        this.f331a = str;
        synchronized (this) {
            this.mDirtyFlags |= 1024;
        }
        notifyPropertyChanged(C1206BR.imgUrl);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i == 0) {
            return onChangeUserInfo((UserInfo) obj, i2);
        }
        if (i == 1) {
            return onChangeUserAccount((UserAccount) obj, i2);
        }
        if (i != 2) {
            return false;
        }
        return onChangeBean((RechargeBean) obj, i2);
    }

    private boolean onChangeUserInfo(UserInfo userInfo, int i) {
        if (i == C1206BR._all) {
            synchronized (this) {
                this.mDirtyFlags |= 1;
            }
            return true;
        } else if (i != C1206BR.nickName) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 2048;
            }
            return true;
        }
    }

    private boolean onChangeUserAccount(UserAccount userAccount, int i) {
        if (i == C1206BR._all) {
            synchronized (this) {
                this.mDirtyFlags |= 2;
            }
            return true;
        } else if (i != C1206BR.gold) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 4096;
            }
            return true;
        }
    }

    private boolean onChangeBean(RechargeBean rechargeBean, int i) {
        if (i != C1206BR._all) {
            return false;
        }
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        return true;
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        boolean z;
        String str;
        boolean z2;
        String str2;
        int i;
        int i2;
        int i3;
        long j2;
        long j3;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        UserInfo userInfo = this.mUserInfo;
        String str3 = this.mBackTitle;
        UserAccount userAccount = this.mUserAccount;
        Integer num = this.mType;
        VipCenterActivity.OnClick onClick = this.mClick;
        String str4 = this.f331a;
        long j4 = j & 10241;
        int i4 = 0;
        if (j4 != 0) {
            if (userInfo != null) {
                str = userInfo.getNickName();
            } else {
                str = null;
            }
            z = str == null;
            if (j4 != 0) {
                j |= z ? 8388608 : 4194304;
            }
        } else {
            str = null;
            z = false;
        }
        long j5 = j & 8200;
        if (j5 != 0) {
            z2 = str3 == null;
            if (j5 != 0) {
                j |= z2 ? 32768 : 16384;
            }
        } else {
            z2 = false;
        }
        if ((j & 12290) != 0) {
            str2 = String.valueOf(("您當前有：" + (userAccount != null ? userAccount.getGold() : 0)) + "金幣");
        } else {
            str2 = null;
        }
        long j6 = j & 8320;
        if (j6 != 0) {
            int safeUnbox = ViewDataBinding.safeUnbox(num);
            boolean z3 = safeUnbox == 0;
            boolean z4 = safeUnbox != 0;
            if (j6 != 0) {
                if (z3) {
                    j3 = j | PlaybackStateCompat.ACTION_SET_SHUFFLE_MODE_ENABLED;
                    j2 = PlaybackStateCompat.ACTION_SET_SHUFFLE_MODE;
                } else {
                    j3 = j | PlaybackStateCompat.ACTION_SET_REPEAT_MODE;
                    j2 = PlaybackStateCompat.ACTION_SET_CAPTIONING_ENABLED;
                }
                j = j3 | j2;
            }
            if ((j & 8320) != 0) {
                j |= z4 ? 131072 : 65536;
            }
            int i5 = z3 ? 0 : 4;
            int i6 = z3 ? 0 : 8;
            if (!z4) {
                i4 = 8;
            }
            i = i5;
            i2 = i4;
            i3 = i6;
        } else {
            i3 = 0;
            i2 = 0;
            i = 0;
        }
        long j7 = j & 9216;
        long j8 = 8200 & j;
        if (j8 == 0) {
            str3 = null;
        } else if (z2) {
            str3 = this.mboundView1.getResources().getString(C1207R.string.textBack);
        }
        long j9 = 10241 & j;
        String str5 = j9 != 0 ? z ? "游客0000" : str : null;
        if (j7 != 0) {
            VipCenterActivity.loadImgUserHead(this.imgUserHead, str4);
        }
        if ((j & 8192) != 0) {
            this.ivRightMenu.setOnClickListener(this.mCallback2);
            this.mboundView1.setOnClickListener(this.mCallback1);
        }
        if (j8 != 0) {
            TextViewBindingAdapter.setText(this.mboundView1, str3);
        }
        if (j9 != 0) {
            TextViewBindingAdapter.setText(this.mboundView4, str5);
        }
        if ((8320 & j) != 0) {
            this.mboundView5.setVisibility(i3);
            this.mboundView6.setVisibility(i2);
            this.mboundView7.setVisibility(i);
        }
        if ((8193 & j) != 0) {
            VipCenterActivity.setUserVipData(this.mboundView5, userInfo);
        }
        if ((j & 12290) != 0) {
            TextViewBindingAdapter.setText(this.mboundView6, str2);
        }
    }

    @Override // com.androidx.p013lv.mine.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            VipCenterActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.btnBack();
            }
        } else if (i == 2) {
            VipCenterActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.btnService();
            }
        }
    }
}
